<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let a = +prompt("a?", "");
      switch (a) {
        case 0:
          console.log(0);
          break;
        case 1:
          console.log(1);
          break;
        case 2:
        case 3:
          console.log(2, 3);
          break;
      }
      /* if (a == 0) {
        console.log(0);
      }
      if (a == 1) {
        console.log(1);
      }
      if (a == 2 || a == 3) {
        console.log("2,3");
      } */
    </script>
  </body>
</html>
